﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using eutolisoModel;

public partial class AccountAdmin_Veiculo_Marca_Home : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public void Gravar()
    {


        using (eutolisoEntities dbContext = new eutolisoEntities())
        {
            marca marca = new marca();

            // veiTipo.vet_nome = txtNome.Text;

            marca.mar_nome = txtNome.Text;

            dbContext.marca.AddObject(marca);

            dbContext.SaveChanges();

        }

    }
    protected void btnInserir_Click(object sender, EventArgs e)
    {
        Gravar();
        grvMarca.DataBind();

    }
}